import React from 'react';
import Index from './layout/index'
import Login from './views/login/Index'

import { HashRouter,BrowserRouter,Switch, Route } from 'react-router-dom'

const App = () => {


  return (
    <HashRouter>
      {/* V6 路由配置 */}
      {/*
      <Routes>
        <Route path={'/login'} element={<Login />} />
      </Routes>
      */}
      {/* V5 路由配置 */}
      <Switch>

        {/* exact: 配置路由规则精确匹配，防止 login 会进入首页 */}
        <Route exact path={'/login'} component={Login} />

        <Route path={'/'} component={Index} />


      </Switch>
    </HashRouter>
  );
};

export default App;
